<template>
  <div class="wrap">
    <html-mould :imgSrc="imgSrc" :msg="msg"></html-mould>
    <div class="confirm" @click="confirm">
      <button-mould btTitle="确定" btColor="#00b38a"></button-mould>
    </div>
  </div>
</template>
<script type="text/ecmascript-6">
  import buttonMould from '@components/buttonMould';
  import htmlMould from '@components/htmlMould';
  import {mapGetters, mapActions} from 'vuex';
  export default {
    data () {
      return {
        msg: '您已报名！您预约的活动时间段17:30-18:30',
        imgSrc: '../../../assets/images/copyfiles/tool.png'
      }
    },
    components: {
      buttonMould,
      htmlMould
    },
    methods: {
      confirm () {
        console.log('确定');
      },
      ...mapGetters(['getToken']),
      ...mapActions(['setToken'])
    },
    mounted() {
      this.signStatus = this.getToken();
      console.log(this.signStatus)
      if (this.signStatus.status === 'success') {
        this.msg = '您已报名，请及时签到';
      } else {
        this.msg = '您暂时没有报名，请先去报名';
      }
    }
  }
</script>

